<?php
error_reporting(E_ALL & ~E_NOTICE);
@session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../function/func.js"></script>
<title>Network Shop Management System</title>
<style type="text/css" >

<!--
.style1 {font-size: 20px}
body,td,th {
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 14px;
	text-align: center;
}
.ss {
	text-align: right;
}
.bbb {
	font-weight: bold;
}
body {
	background-color: #CCC;
}
-->

</style>

</head>
<body onload="document.frmbill.name.focus();">
<?php
if($_GET["action"]=='namebill') {
	$_SESSION["name_bill"] = $_POST["name"];
	$_SESSION["address_bill"] = $_POST["address"];
	session_write_close();
	echo "<script>window.location='bill.php';</script>";
}
?>
<form action="billname.php?action=namebill" method="post" name="frmbill" id="frmbill" >
<table width="400" border="0" align="center" cellpadding="20" cellspacing="1" bgcolor="#666666">
  <tr>
    <td width="400" bgcolor="#FFFFFF">
    <table width="80%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td><div align="right">ชื่อ-นามสกุล : </div></td>
        <td><div align="left">
          <input name="name" type="text" id="name" onkeyup="IsScharacter(this.value,this)" size="25" />
        </div></td>
      </tr>
      <tr>
        <td valign="top"><div align="right">ที่อยู่ : </div></td>
        <td><div align="left">
          <textarea name="address" rows="3" onkeyup="IsScharacter(this.value,this)" id="address"></textarea>
        </div></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
  <p>
    </p>
  <p>
    <input type="submit" name="Submit" id="button" value="เพิ่มชื่อและที่อยู่" />
    <input type="button" name="cancle" id="cancle" value="ยกเลิก" onclick="window.history.go(-1);" />
  </p>
</form>
</body>
</html>
